package tmproject.hlhj.fhp.cartrans.presenter

import android.content.Context
import com.example.mymvp.BasePresenter
import tmproject.hlhj.fhp.cartrans.IView.NoticeDetailView
import tmproject.hlhj.fhp.cartrans.javaBean.NoticeDetailBean
import tmproject.hlhj.fhp.cartrans.modules.NoticeDetailModule

/**
 * Created by Never Fear   on 2018\8\28 0028.
Never More....
 */
class NoticeDetailPresenter :BasePresenter<NoticeDetailModule,NoticeDetailView>(), NoticeDetailModule.OnNoticeDetailListener {
    override fun createModule() {
        module= NoticeDetailModule()
        module.listener=this
    }

    fun getNoticeDetail(c:Context,token:String?,id:Int){
        module.getNoticeDetail(c,token, id)
    }

    override fun gotNoticeDetail(noticeDetailBean: NoticeDetailBean) {
        view?.setDetailInfo(noticeDetailBean)
    }
}